import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element Ui库
import './plugins/element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.config.productionTip = false

//引入阿里icon图标
import './assets/icon/iconfont.css'

//引入时间戳转化插件 注册为全局API
import {format1}  from './plugins/formatData'
Vue.prototype.$format = format1

//引入swiper样式
import 'swiper/css/swiper.css'

//引入全局组件并注册
import Breadcrumb  from  './components/BreadCrumb'
Vue.component(Breadcrumb.name,Breadcrumb)
Vue.component('Pagination',()=>import ('./components/Pagination'))
Vue.component('FrameStyle',()=>import ('./components/FrameStyle'))
Vue.component('UploadImg',()=>import ('./components/UploadImg'))
Vue.component('Swiper',()=>import('./components/Swiper'))

//引入echarts插件
import echarts from "echarts"
Vue.prototype.$echarts = echarts
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
